package com.owo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 资源聚合
 * </p>
 */
@Schema(title = "资源聚合")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("resource_path")
public class ResourcePath implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @Schema(description = "标题")
    @TableField("title")
    private String title;

    /**
     * 分类
     */
    @Schema(description = "分类")
    @TableField("classify")
    private String classify;

    /**
     * 封面
     */
    @Schema(description = "封面")
    @TableField("cover")
    private String cover;

    /**
     * 链接
     */
    @Schema(description = "链接")
    @TableField("url")
    private String url;

    /**
     * 资源类型
     */
    @Schema(description = "资源类型")
    @TableField("type")
    private String type;

    /**
     * 备注
     */
    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    /**
     * 是否启用[0:否，1:是]
     */
    @Schema(description = "是否启用[0:否，1:是]")
    @TableField("status")
    private Boolean status;

    /**
     * 简介
     */
    @Schema(description = "简介")
    @TableField("introduction")
    private String introduction;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

}
